package simplenotessyncsrv;

import java.io.BufferedReader;
import java.io.File;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

    public static void main(String[] args) throws IOException {
        // Initialisation
        File workdir = new File(System.getProperty("user.home") + "/.SimpleNotesSync");
        if (!workdir.exists()) {
            workdir.mkdirs();
        }
        // End of initialisation

        SyncSrv srv = new SyncSrv();
        srv.start();

        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        br.readLine();
        srv.Stop();
    }
}
